const code =
    `<template>
    <el-button type="primary" @click.stop="drawer">弹出抽屉</el-button>
</template>
<script>
    export default {
        props: {
            comp: {
                type:  [Function, Object]
            }
        },
        methods: {
            drawer(e) {
                console.log(e)
                this.$bui.drawer({
                    comp: this.comp,
                    params: {
                        title: '我是标题'
                    },
                    // mask:false,
                    size: {
                        padding : '10%'
                    },
                    animate:{
                        in:'flipInX',
                        out:'flipOutX'
                    },
                    // size:'no-top'
                    // closeBtn: false,
                    callback(obj){
                        console.log('关闭的回调')
                        console.log(obj)
                    }
                })
            }
        }
    }
</script>`;

export default code;
